﻿using System.Diagnostics;
using Game.Common.Visitor;
using Game.Objects;

namespace Game.Controller.Internal
{
    class ResetVehicleVisitor : IVisitor
    {
        public void Visit(IVisitorElement vehicle)
        {
            var v = vehicle as Vehicle;
            Debug.Assert(v != null, "v != null");

            v.Movement.Reset();
            AttackValue.SetValue(v, 1);
        }

    }
}
